package com.cee.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cee.dto.CompletionDTO;
import com.cee.dto.ShortAnswerDTO;
import com.cee.model.Completion;
import com.cee.model.ShortAnswer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShortAnswerMapper extends BaseMapper<ShortAnswer> {

    void saveShortAnswer(ShortAnswer shortAnswer);

    /**
     * 查询列表， del_date_time is null
     * @param shortAnswerDTO
     * @return
     */
    List<ShortAnswerDTO> getShortAnswerList(ShortAnswerDTO shortAnswerDTO);

    /**
     * 查询LIST,
     * @param examId
     * @return
     */
    List<ShortAnswerDTO> getListByExamId(@Param("examId") Integer examId);


    void updateShortAnswerById(ShortAnswer shortAnswer);
}
